<?php
function process(&$req){
     switch($req['do']){
	     //problem related cases
          case 'apro':
               break;
          case 'ipro':
               break;
          case 'epro':
               break;
          case 'upro':
               break;
          case 'rpro':
               break;
          case 'pro':
               break;
          case 'spro':
               break;
          default:
               $req['do'] = 'spro';
               process(&$req)
               break;
          //end of problem related cases
      }
      return $html;
  }
  ?>